package OOP.day09.CompanyDemo;

public abstract class Staff {
    public String name;
    public int age;
    public double  salary;

    public Staff() {
    }

    public Staff(String name, int age, double salary) {
        this.name = name;
        this.age = age;
        this.salary = salary;
    }

    //上班
    void workOn(){
        System.out.println(name+"上班了");
    }
    //下班
    void workOff(){
        System.out.println(name+"下班了");
    }
    //完成工作
    abstract void workDown();
}
